﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Faust.Andrew.MTG.Player
{
	/// <summary>
	/// Interaction logic for DrawCardTarget.xaml
	/// </summary>
	public partial class DrawCardTarget : Window
	{
		public DrawCardTarget()
		{
			this.InitializeComponent();
            DrawTarget = DrawTarget.Cancel;
			// Insert code required on object creation below this point.
		}
        public DrawTarget DrawTarget { get; set; }

        public static DrawTarget Prompt()
        {
            DrawCardTarget window = new DrawCardTarget();
            window.ShowDialog();

            return window.DrawTarget;
        }

		private void btnCancel_Click(object sender, System.Windows.RoutedEventArgs e)
		{
            DrawTarget = DrawTarget.Cancel;
            DialogResult = false;
            Hide();
		}

		private void btnWorkspace_Click(object sender, System.Windows.RoutedEventArgs e)
		{
            DrawTarget = DrawTarget.Workspace;
            DialogResult = true;
            Hide();
		}

		private void btnHand_Click(object sender, System.Windows.RoutedEventArgs e)
		{
            DrawTarget = DrawTarget.Hand;
            DialogResult = true;
            Hide();
		}
	}
}